<?php
/**
 * Nordic Repository
 * 
 * LICENSE
 * 
 * The new BSD license is applied on this source-file. For further
 * information please visit http://license.nordic-dev.de/newbsd.txt
 * or send an email to andre.moelle@gmail.com.
 */

/**
 * This class adds some functionalities to "Zend_View_Abstract".
 * 
 * @category   Nordic
 * @package    Nordic_Schema
 * @copyright  2007 Nordic Development
 * @license    http://license.nordic-dev.de/newbsd.txt (New-BSD license)
 * @author     Andre Moelle <andre.moelle@gmail.com>
 * @version    $Id: Interface.php 3 2007-07-08 09:21:42Z andre.moelle $
 */
 
/**
 * $Id: Interface.php 3 2007-07-08 09:21:42Z andre.moelle $
 * 
 * @package Nordic.Schema
 * @copyright 2006-2007 Nordic Development
 * @author Andre Moelle <andre.moelle@gmail.com>
 * 
 * This interface defines the methods one schema has to implement.
 */
interface Nordic_Schema_Interface
{
	/**
	 * This method decodes one array to the string in the schema-format.
	 * 
	 * The result is a string, that can be used to write it in a
	 * file.
	 * 
	 * @param Array $array array to decode
	 * @return String
	 */
	public function decode ($array);
	
	/**
	 * This method encodes one string to an array.
	 * 
	 * The result is an array, which can be both numeric or 
	 * associative.
	 * 
	 * @param String $string string to encode
	 * @return Array
	 */
	public function encode ($string);
}
?>